package com.cgy.wodeyigui.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 1：整合mybatis-plus
 *     公共包导入依赖mybatis-plus的依赖
 *     //CategoryServiceImpl使用mybatis-plus逻辑删除
 *         logic-delete-value: 1  //1为删除
 *       logic-not-delete-value: 0 //0为不删除
 *       实体类添加逻辑删除注解@TableLogic
 *
 *
 *       3:JSR303校验
 *        1）Bean添加校验注解
 *           实体类添加相关注解 例如@NotNull(message="1111")
 *           bean添加@Valid  紧跟给校验的BeanbindingResult 就可以获取自定义校验结果
            4：同意的异常处理类
            @ControllerAdvice
            给注解校验标注什么情况需要分组校验 Bean添加相应的@Validated(AddGroup.class)
        4:分组校验

 */

@EnableFeignClients("com.cgy.wodeyigui.product.feign")
@MapperScan("com.cgy.wodeyigui.product.dao")
@SpringBootApplication
@EnableDiscoveryClient
public class YiguiProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(YiguiProductApplication.class, args);
    }

}
